.chat-tab {
    position: absolute;
    right: 0;
    top: 2px;
    z-index: 10;
    font-size: 0;
}
.chat-tab-item {
    display: inline-block;
    vertical-align: top;
    height: 20px;
    line-height: 20px;
    font-size: 10px;
    color: #333333;
    background: #fff;
    border: 0.7px solid #dfdfdf;
    margin: 0 -1px 0 0;
    padding: 0 10px;
    min-width: 60px;
    text-align: center;
    box-sizing: border-box;

    &:first-child {
        border-radius: 3px 0 0 3px;
    }
    &:last-child {
        border-radius: 0 3px 3px 0;
    }
    &.cur {
        background: #e9f9fb;
        color: #00b9d1;
    }
}
.chat-tab-cont {
    position: relative;
}

.page-index .epanel--index-map {
    .chart--tab-title {
        .chat-tab {
            position: relative;
            right: auto;
            top: auto;
        }
    }
}

.chart--tab-title {
    .chat-tab {
        position: relative;
        right: auto;
        top: auto;
    }
    .chat-tab-item {
        display: inline-block;
        vertical-align: top;
        height: 22px;
        line-height: 21px;
        transform: all 0.15s ease-in;
        .chat-tab-item-txt {
            display: block;
        }

        &.cur {
            &.chat-tab-item--tips {
                margin-bottom: 40px;
                .chat-tab-item-txt {
                    position: relative;
                    &::after {
                        content: '';
                        background: url('https://static.wecity.qq.com/wapdisease/ico-t-1562bbe80a9cafeba6e0e604008ff5aa.png');
                        background-size: 100% auto;
                        background-position: 50% 100%;
                        background-repeat: no-repeat;
                        width: 15px;
                        height: 6px;
                        position: absolute;
                        left: 50%;
                        bottom: -8px;
                        margin-left: -8px;
                        z-index: 2;
                    }
                }
            }
        }
    }
    .chart-bd {
        transform: all 0.15s ease-in;
    }
}
.tabtips {
    position: absolute;
    top: 28px;
    left: 0;
    background: #fff;
    display: none;
    box-shadow: 0px 0px 8px 0 rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    border: 0.7px solid #dfdfdf;
}
.tabtips-inner {
    font-size: 10px;
    color: #333;
    padding: 5px 12px;
    font-weight: normal;
    line-height: 1.5;
    text-align: left;
    .txt-link {
        font-size: 10px;
        color: #00b9d1;
        font-weight: normal;
        display: inline-block;
    }
}
.chat-tab-item {
    &.cur {
        .tabtips {
            display: block;
        }
    }
    &:nth-child(1) {
        .tabtips {
            &::before {
                left: 19px;
            }
            &::after {
                left: 20px;
            }
        }
    }
    &:nth-child(2) {
        .tabtips {
            &::after {
                left: 80px;
            }
        }
    }
}
